import request from '@/utils/request'
// 获取面试技巧列表;
export const skiisList = (params) => {
    return request({
        url: '/articles/technic',
        params
    })
}
// 面经详情
export const skiisDetail = (id) => {
    return request({
        url: '/articles/technic/' + id
    })
}
// 面经热搜列表
export const hotSearchList = () => {
    return request({
        url: '/articles/technicTopSearch'
    })
}
// 面经分享列表
export const shareList = (params) => {
    return request({
        url: '/articles/share',
        params
    })
}
// 面经技巧详情
export const shareDetailList = (id) => {
    return request({
        url: '/articles/share/' + id
    })
}
// 面经评论
export const shareComment = (params) => {
    return request({
        url: '/articles/comments/' + params.id,
        params
    })
}
// 面经分享热搜
export const hotShareList = () => {
    return request({
        url: '/articles/shareTopSearch'
    })
}
export const leaveComment = (data) => {
    return request({
        url: '/articles/comments',
        method: 'post',
        data
    })
}
// 收藏列表
export const collectList = (data) => {
    return request({
        url: '/articles/collect',
        method: 'post',
        data
    })
}
// 点赞文章
export const goodArticle = (data) => {
    return request({
        url: '/articles/star',
        method: 'post',
        data
    })
}
